package net.osweb.crm.modules.email.bean;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Receivedemailhead entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "email_receivedemailhead")
public class ReceivedEmailHead implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 4121715014389312994L;
	private Integer id;
	private Integer userid;
	private String emailuid;
	private String fromAddress;
	private String fromalias;
	private String toAddress;
	private String ccAddress;
	private String replyAddress;
	private String subject;
	private Integer mailsize;
	private Timestamp maildate;
	private Integer status;
	private Timestamp receivedtime;
	private Integer havaatthm;
	private String commnet;

	// Constructors

	/** default constructor */
	public ReceivedEmailHead() {
	}

	/** full constructor */
	public ReceivedEmailHead(Integer userid, String emailuid,
			String fromAddress, String fromalias, String toAddress,
			String ccAddress, String replyAddress, String subject,
			Integer mailsize, Timestamp maildate, Integer status,
			Timestamp receivedtime, Integer havaatthm, String commnet) {
		this.userid = userid;
		this.emailuid = emailuid;
		this.fromAddress = fromAddress;
		this.fromalias = fromalias;
		this.toAddress = toAddress;
		this.ccAddress = ccAddress;
		this.replyAddress = replyAddress;
		this.subject = subject;
		this.mailsize = mailsize;
		this.maildate = maildate;
		this.status = status;
		this.receivedtime = receivedtime;
		this.havaatthm = havaatthm;
		this.commnet = commnet;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "userid")
	public Integer getUserid() {
		return this.userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	@Column(name = "emailuid")
	public String getEmailuid() {
		return this.emailuid;
	}

	public void setEmailuid(String emailuid) {
		this.emailuid = emailuid;
	}

	@Column(name = "fromAddress", length = 127)
	public String getFromAddress() {
		return this.fromAddress;
	}

	public void setFromAddress(String fromAddress) {
		this.fromAddress = fromAddress;
	}

	@Column(name = "fromalias", length = 127)
	public String getFromalias() {
		return this.fromalias;
	}

	public void setFromalias(String fromalias) {
		this.fromalias = fromalias;
	}

	@Column(name = "toAddress", length = 3000)
	public String getToAddress() {
		return this.toAddress;
	}

	public void setToAddress(String toAddress) {
		this.toAddress = toAddress;
	}

	@Column(name = "ccAddress", length = 3000)
	public String getCcAddress() {
		return this.ccAddress;
	}

	public void setCcAddress(String ccAddress) {
		this.ccAddress = ccAddress;
	}

	@Column(name = "replyAddress", length = 64)
	public String getReplyAddress() {
		return this.replyAddress;
	}

	public void setReplyAddress(String replyAddress) {
		this.replyAddress = replyAddress;
	}

	@Column(name = "subject", length = 640)
	public String getSubject() {
		return this.subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	@Column(name = "mailsize")
	public Integer getMailsize() {
		return this.mailsize;
	}

	public void setMailsize(Integer mailsize) {
		this.mailsize = mailsize;
	}

	@Column(name = "maildate", length = 19)
	public Timestamp getMaildate() {
		return this.maildate;
	}

	public void setMaildate(Timestamp maildate) {
		this.maildate = maildate;
	}

	@Column(name = "status")
	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Column(name = "receivedtime", length = 19)
	public Timestamp getReceivedtime() {
		return this.receivedtime;
	}

	public void setReceivedtime(Timestamp receivedtime) {
		this.receivedtime = receivedtime;
	}

	@Column(name = "havaatthm")
	public Integer getHavaatthm() {
		return this.havaatthm;
	}

	public void setHavaatthm(Integer havaatthm) {
		this.havaatthm = havaatthm;
	}

	@Column(name = "commnet")
	public String getCommnet() {
		return this.commnet;
	}

	public void setCommnet(String commnet) {
		this.commnet = commnet;
	}

}